using System;
using System.Collections.Generic;
using System.Text;

namespace Circo.Essentials.Exceptions
{
    public class BlockAccessViolationException : Exception
    {
        private object _blockedObject;

        public object BlockedObject
        {
            get { return _blockedObject; }
            set { _blockedObject = value; }
        }

        public BlockAccessViolationException(object blockedObject)
            : base()
        {
            this.BlockedObject = blockedObject;
        }

        public BlockAccessViolationException(string message, object blockedObject)
            : base(message)
        {
            this.BlockedObject = blockedObject;
        }

        public BlockAccessViolationException(string message, Exception innerException, object blockedObject)
            : base(message, innerException)
        {
            this.BlockedObject = blockedObject;
        }

    }
}
